<!DOCTYPE html>
<html>
<script>
var _hmt = _hmt || [];
(function() {
  var hm = document.createElement("script");
  hm.src = "https://hm.baidu.com/hm.js?5e8f1b6d8ba596b4ce441edb4cefe78f";
  var s = document.getElementsByTagName("script")[0]; 
  s.parentNode.insertBefore(hm, s);
})();
</script>
<head>
	<title>站前学府网络售楼中心</title>
	<meta charset="utf-8">
	<meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
	<link rel="stylesheet" type="text/css" href="mobile.css">
	<link rel="stylesheet" href="layui/css/layui.css"  media="all">
    <script src="https://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
    <script src="jquery.form.js"></script>
    <script src="main.js"></script>
 <script type="text/javascript">
    function browserRedirect() {
        var sUserAgent= navigator.userAgent.toLowerCase();
        var bIsIpad= sUserAgent.match(/ipad/i) == "ipad";
        var bIsIphoneOs= sUserAgent.match(/iphone os/i) == "iphone os";
        var bIsMidp= sUserAgent.match(/midp/i) == "midp";
        var bIsUc7= sUserAgent.match(/rv:1.2.3.4/i) == "rv:1.2.3.4";
        var bIsUc= sUserAgent.match(/ucweb/i) == "ucweb";
        var bIsAndroid= sUserAgent.match(/android/i) == "android";
        var bIsCE= sUserAgent.match(/windows ce/i) == "windows ce";
        var bIsWM= sUserAgent.match(/windows mobile/i) == "windows mobile";

        if (bIsIpad || bIsIphoneOs || bIsMidp || bIsUc7 || bIsUc || bIsAndroid || bIsCE || bIsWM) {
         
        } else {
           window.location= 'index.html';
        }
    }
    browserRedirect();//调用自身，页面一打开就开始跳转
</script>
</head>

<body>
 <div class="mcontainer">
    <img class="m_banner" src="allimg/mobile/ban.jpg">
    <!-- 报名 -->
    <p class="m_tit">预约报名 享更多购房优惠</p>
    <form id="form" action="" method="post" >
    	<div class="inptbox">
    		<span>姓名:</span>
    		<input type="text" name="name" value="" placeholder="输入您的姓名">
    	</div>
    	<div class="inptbox">
    		<span>电话:</span>
    		<input id="phone" type="tel" maxlength="11"  name="telphone" value="" placeholder="输入您的电话">
    	</div>
    	<input class="tijiao"  type="button" onclick="test();" value="预约报名">
        <script type="text/javascript">
            window.onload= too;
            function too(){
                $.get({
             //几个参数需要注意一下
                 type: "get",//方法类型
                 dataType: "text",//预期服务器返回的数据类型
                 url: "http://fang.yiikii.com/count.php",//url
                 success: function (result) {
                     // console.log(result);//打印服务端返回的数据(调试用)
                      alert(result);
                      window.location.href="mbindex.html";
                 },
                 error : function() {
                     alert("提交失败！");

                 }
             });
            }

        </script>
    </form>
    <p class="tips">已有<span id="rbm" class="rshu">0</span>人报名</p>
    <script type="text/javascript">
        function test(){
       //  var val=$("#name").val();
        // if(val==""){
        //  alert('名字是必填项');
        // }
        var val1= $('#phone').val();
        var dh=/^1(3|4|5|6|7|8|9)\d{9}$/;
        if(!dh.test(val1)){
            alert('号码格式不正确');
            return false;
            }; 
        $.ajax({
             //几个参数需要注意一下
                 type: "POST",//方法类型
                 dataType: "text",//预期服务器返回的数据类型
                 url: "http://fang.yiikii.com/form.php",//url
                 data: $('#form').serialize(),
                 success: function (result) {
                     // console.log(result);//打印服务端返回的数据(调试用)
                         alert(result);
                         window.location.href="mbindex.html";
                 },
                 error : function() {
                     alert("提交失败！");

                 }
             });
     }
    </script>
    <!-- /报名 -->
    <div class="copywx">
    	<img src="allimg/mobile/wx.png">
    	<div class="txt1">
    		<p class="p1">添加微信客服</p>
    		<p class="p2">获取楼盘最新资讯</p>
    	</div>
    	<div hidden id="keydiv">zxnc000</div>
    	<button onclick="copyText()">一键复制</button>

    </div>
    <img class="webpc" src="allimg/mobile/web_02.jpg">
    <img class="webpc2" src="allimg/mobile/web_03.jpg">
    <img class="webtit" src="allimg/mobile/web_04.png">
    	  <!--户型鉴赏-->
	 <div  class="layui-carousel" id="test1" style="background-color: #fff !important;">
			  <div carousel-item="">
			    <div><img src="allimg/pc/huxing22.jpg"></div>
			    <div><img src="allimg/pc/huxing23.jpg"></div>
			    <div><img src="allimg/pc/huxing24.jpg"></div>
			    <div><img src="allimg/pc/huxing25.jpg"></div>
			    <div><img src="allimg/pc/huxing26.jpg"></div>
			    <div><img src="allimg/pc/huxing27.jpg"></div>
			    <div><img src="allimg/pc/huxing28.jpg"></div>
			  </div>
	 </div> 
	 <img class="webpc2" src="allimg/mobile/web_05.jpg">
	  <!-- 报名 -->
    <p class="m_tit">预约报名 享更多购房优惠</p>
    <form id="form1" action="" method="post">
    	<div class="inptbox">
    		<span>姓名:</span>
    		<input type="text" name="name" value="" placeholder="输入您的姓名">
    	</div>
    	<div class="inptbox">
    		<span>电话:</span>
    		<input type="tel" id="phone1" maxlength="11"  name="telphone" value="" placeholder="输入您的电话">
    	</div>
    	<input class="tijiao"  type="button" onclick="test1();f()" value="预约报名">
    </form>
    <p class="tips">已有<span class="rshu">0</span>人报名</p>
<script type="text/javascript">
 
        function test1(){
       //  var val=$("#name").val();
        // if(val==""){
        //  alert('名字是必填项');
        // 
        var val1= $('#phone1').val();
        var dh=/^1(3|4|5|6|7|8|9)\d{9}$/;
        if(!dh.test(val1)){
            alert('号码格式不正确');
            return false;
            }; 
        $.ajax({
             //几个参数需要注意一下
                 type: "POST",//方法类型
                 dataType: "text",//预期服务器返回的数据类型
                 url: "http://fang.yiikii.com/form.php",//url
                 data: $('#form1').serialize(),
                 success: function (result) {
                     // console.log(result);//打印服务端返回的数据(调试用)
                         alert(result);
                         window.location.href="mbindex.html";
                 },
                 error : function() {
                     alert("提交失败！");

                 }
             });
     }
    </script>
    <!-- /报名 -->
      <div class="copywx">
    	<img src="allimg/mobile/wx.png">
    	<div class="txt1">
    		<p class="p1">添加微信客服</p>
    		<p class="p2">获取楼盘最新资讯</p>
    	</div>
    	<button onclick="copyText()">一键复制</button>
    </div>
    <div style="height: 8rem"></div>
 </div>
 <div class="navbox">
 	 <div class="itembox" style="margin-left: 1.6rem;">
 	 	<img src="allimg/mobile/zixun.png">
 	 	<a href="http://p.qiao.baidu.com/cps/chat?siteId=14073667&userId=29257700"><span>在线咨询</span></a>
 	 </div>
 	 <div class="itembox" onclick="openT()" style="margin-left: 1.6rem;">
 	 	<img src="allimg/mobile/yuyue.png">
 	 	<span>预约看房</span>
 	 </div>
 	 <div class="telphone" style="margin-right: 1rem;">
 	 	<a href="tel:‭181 7089 0584‬">电话咨询 </a>
 	 </div>
 </div>
<!-- 报名弹层 -->
 <div class="tcbox" style="display: none">
 	<!-- 报名 -->
 	<div class="formbox">
 	  
	    <p class="m_tit">预约报名 享更多购房优惠</p>
	    <form id="form3" action="" method='post'>
	    	<div class="inptbox">
	    		<span>姓名:</span>
	    		<input id="name" type="text" name="name" value="" placeholder="输入您的姓名">
	    	</div>
	    	<div class="inptbox">
	    		<span>电话:</span>
	    		<input id="pho" type="tel" maxlength="11"  name="telphone" value="" placeholder="输入您的电话">
	    	</div>
	    	<input id="sub" class="tijiao"  type="button" onclick="test2();f()" value="预约报名">
	    </form>
	    <p class="tips">已有<span class="rshu">0</span>人报名</p>
    </div>
    <script type="text/javascript">
   
  </script>
    <!-- /报名 -->
 	<div onclick="closeT()" class="tcbg"></div>
 </div>
 <!-- /报名弹层 -->
<!--  <img class="kefu" src="allimg/mobile/kefu.png"> -->
 <script type="text/javascript">
         function test2(){
       //  var val=$("#name").val();
        // if(val==""){
        //  alert('名字是必填项');
        // }
        var val1= $('#pho').val();
        var dh=/^1(3|4|5|6|7|8|9)\d{9}$/;
        if(!dh.test(val1)){
            alert('号码格式不正确');
            return false;
            }; 
        $.ajax({
             //几个参数需要注意一下
                 type: "POST",//方法类型
                 dataType: "text",//预期服务器返回的数据类型
                 url: "http://fang.yiikii.com/form.php",//url
                 data: $('#form3').serialize(),
                 success: function (result) {
                     // console.log(result);//打印服务端返回的数据(调试用)
                         alert(result);
                         window.location.href="mbindex.html";
                 },
                 error : function() {
                     alert("提交失败！");

                 }
             });
     }
 	function openT(){
 		document.getElementsByClassName('tcbox')[0].style.display="block"
 	};
 	function closeT(){
 		document.getElementsByClassName('tcbox')[0].style.display="none"
 	};
 </script>
 	<script type="text/javascript"  src="layui/layui.js"  ></script>
	<script type="text/javascript" >
		layui.use('carousel', function(){
		  var carousel = layui.carousel;
		  //建造实例
		  carousel.render({
		    elem: '#test1'
		    ,width: '100%' //设置容器宽度
		    ,height: '25.8rem'
		    ,arrow: 'always' //始终显示箭头
		    //,anim: 'updown' //切换动画方式
		  });
		});
	</script>
</body>
<script type="text/javascript">
	function copyText() {
var Url2 = document.getElementById("keydiv").innerText;
var oInput = document.createElement('input');
oInput.value = Url2;
document.body.appendChild(oInput);
oInput.select();
document.execCommand("Copy"); 
oInput.className = 'oInput';
oInput.style.display = 'none';
alert('复制客服微信成功，快去添加吧');
}
</script>
<script type="text/javascript">
  !function(w, d, m) {
    function r() {
        var t = 20,
            o = 750,
            e = d.documentElement.clientWidth || w.innerWidth,
            n = m.max(m.min(e, 480), 320),
            h = 50;
        320 >= n && (h = m.floor(n / o * t * .99)), n > 320 && 362 >= n && (h = m.floor(n / o * t * 1)), n > 362 && 375 >= n && (h = m.floor(n / o * t * 1)), n > 375 && (h = m.floor(n / o * t * .97)), d.querySelector("html").style.fontSize = h + "px"
    };
    r();
    w.onresize = function() {
        r()
    }
}(window, document, Math);
</script>


</html>
